/*
** xfuncs.c for client zappy in /home/hubert_s//zappouet/client
** 
** Made by sevan hubert
** Login   <hubert_s@epitech.net>
** 
** Started on  Tue Jun 28 13:37:13 2011 sevan hubert
** Last update Tue Jun 28 13:45:07 2011 sevan hubert
*/

#include "client_zappy.h"

void	*xmalloc(size_t size)
{
  void	*ptr;

  ptr = NULL;
  ptr = malloc(size);
  if (ptr == NULL)
    {
      printf("Error : bad alloc.");
      exit(-1);
    }
  return (ptr);
}

